package com.szq.yygh.hosp.controller;

import com.szq.yygh.common.result.Result;
import com.szq.yygh.hosp.service.DepartmentService;
import com.szq.yygh.hosp.vo.hosp.DepartmentVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/***
 * All rights Reserved, Designed By www.jx-lab.com
 * @Title: DepartmentController
 * @Description:
 * @author lixy
 * @date 2021/8/20 16:34
 * @version V1.0
 * @Copyright: www.jx-lab.com Inc. All rights reserved.
 * 注意：本内容仅限于众合景轩信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Api(tags = "科室")
@RestController
@RequestMapping("/admin/hosp/department")
public class DepartmentController {

    @Autowired
    private DepartmentService departmentService;

    @ApiOperation(value = "根据医院编码查询所有科室信息")
    @GetMapping("/getDeptList/{hoscode}")
    public Result getDeptList(@PathVariable String hoscode){
        return Result.ok(departmentService.getDeptList(hoscode));
    }
}
